package com.szrt.mybatis.work.manager.entity;

import com.szrt.mybatis.department.entity.DepartmentEntity;

/**
 * CREATE TABLE `mybatis_manager_t` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `MANAGER_NAME` varchar(1024) DEFAULT NULL COMMENT '部门经理的名称',
  `DEPARTMENT_ID` int(11) DEFAULT NULL COMMENT '部门ID',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=1004 DEFAULT CHARSET=utf8;
 *
 */
public class ManagerEntity {
	
	private Integer id;
	
	private String managerName;
	
	private Integer departmentId;
	
	
	//以下为非数据库字段  在mybatis_manager_t2本身中没有对应的属性
	private String departmentName;
	
	
	
	//private DepartmentEntity department;
	
	

	/*public DepartmentEntity getDepartment() {
		return department;
	}

	public void setDepartment(DepartmentEntity department) {
		this.department = department;
	}*/

	

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public Integer getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	@Override
	public String toString() {
		return "ManagerEntity [id=" + id + ", managerName=" + managerName + ", departmentId=" + departmentId
				+ ", departmentName=" + departmentName + "]";
	}
	
	
	
	
	

}
